package mk.com.ldm.corepoint.administration.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class ModalEvent extends GwtEvent<ModalEventHandler> {
	public static Type<ModalEventHandler> TYPE = new Type<ModalEventHandler> ();
	String type;
	String id;
	
	public ModalEvent(String type, String id){
		this.type = type;
		this.id = id;
	}
	
	

	public String getType() {
		return type;
	}



	public String getId() {
		return id;
	}



	@Override
	public Type<ModalEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ModalEventHandler handler) {
		handler.onModal(this);
	}
}
